<div class="search-box">
	<form class="search_form layui-form" lay-filter="department_search_form">
		{if condition="SITE_ID EQ null"}
		<div class="layui-inline">
			<label class="layui-form-label">所属分站</label>
			<div class="layui-input-inline">
				<select name="site_id" lay-filter="site_id">
					<option value="">全部</option>
					<option value="-1">主站</option>
					{volist name="get_site_list" id="list"}
						<option value="{$list.site_id}">{$list.site_name}</option>
					{/volist}
				</select>
			</div>
		</div>
		{/if}
		<div class="layui-inline">
			<label class="layui-form-label">部门名称</label>
			<div class="layui-input-inline">
				<input type="text" name="department_name" autocomplete="off" class="layui-input">
			</div>
		</div>
		<div class="pack-up"></div>
	</form>
</div>
<div class="layui-btn-group">
	<a data-id="add_department" data-url="{:url('department/tplForm')}" data-title="新增部门" class="layui-btn layui-btn-normal layui-btn-sm tap-nav"><i class="layui-icon layui-icon-add-1"></i>新增</a>
	<button class="layui-btn layui-btn-danger layui-btn-sm del-department"><i class="layui-icon layui-icon-delete"></i>删除</button>
</div>
<table class="layui-hide" id="department_list" lay-filter="department_list"></table>
<script>
	var department_list_url = "{:url('department/ajaxdepartment')}";
	var department_delete_url = "{:url('department/ajaxDelete')}";
	var department_one_url = "{:url('department/ajaxOneData')}";
	var department_cols = {$cols};
</script>
<script src="/static/js/department/department.js" type="text/javascript" charset="utf-8"></script>
<script type="text/html" id="department_tool">
	<div class="layui-btn-group">
		<a class="layui-btn layui-btn-normal layui-btn-xs tap-nav" lay-event="edit" data-id="edit_department_{{ d.department_id}}" data-url="{:url('department/tplForm')}?department_id={{ d.department_id}}" data-title="修改分站"><i class="layui-icon layui-icon-edit"></i></a>
		<a class="layui-btn layui-btn-danger layui-btn-xs" lay-event="del" data-title="删除"><i class="layui-icon layui-icon-delete"></i></a>
		<a class="layui-btn layui-btn-danger layui-btn-xs hide-update" lay-event="update"><i class="layui-icon layui-icon-up"></i></a>
	</div>
</script>